
project(uv_test)

set(TOP_DIR ${PROJECT_SOURCE_DIR})

####
include_directories(${TOP_DIR})
include_directories(${TOP_DIR}/net)
include_directories(${TOP_DIR}/third/include)

#####
aux_source_directory(${TOP_DIR}/net SRC_LIST)

aux_source_directory(${TOP_DIR}/test SRC_LIST)
aux_source_directory(${TOP_DIR}/test/ut SRC_LIST)

add_compile_options(-std=c++11 -g)

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)

message("xxxx ${TOP_DIR}")

link_directories(${TOP_DIR}/third/lib)

add_executable(event_bin ${SRC_LIST})

IF (CMAKE_SYSTEM_NAME MATCHES "WINDOWS")
	
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "LINUX")
    TARGET_LINK_LIBRARIES(event_bin uv_a pthread dl )
ENDIF ()
